Skip to content

DEVREL-2693: Examples for extended app modes#49

Open
AndrewDiMola wants to merge 1 commit into
Webflow-Examples:mainfrom
AndrewDiMola:2693-extended-app-modes
Open

DEVREL-2693: Examples for extended app modes#49
AndrewDiMola wants to merge 1 commit into
Webflow-Examples:mainfrom
AndrewDiMola:2693-extended-app-modes

Conversation

@AndrewDiMola
Copy link
Copy Markdown

Companion examples for the docs work in webflow/openapi-internal#790.

Adds three new methods to the Utilities object in src/examples/utilities.ts:

  • getCurrentMode — reads the current Designer mode with webflow.getCurrentMode() and logs a mode-specific message.
  • isMode — checks whether the Designer is in Design mode with webflow.isMode("design") and notifies the user when it is not.
  • subscribeAppModesEnriched — subscribes to currentappmode using the new event argument, showing how event.mode and event.appModes remove the need for a separate canForAppMode() call inside the callback.

Existing checkAppMode and subscribeAppModes methods are left in place to preserve the legacy pattern for reference and backward-compat demonstration.

Feature-flagged behind ff-devpl-3603-app-mode-notifications and ff-devpl-3896-app-modes-build-mode on the platform side.

@AndrewDiMola AndrewDiMola force-pushed the 2693-extended-app-modes branch from 7bde0b8 to 9fe44b7 Compare May 4, 2026 17:51
@AndrewDiMola AndrewDiMola force-pushed the 2693-extended-app-modes branch from 4105c59 to b5b29d6 Compare May 19, 2026 18:36
@AndrewDiMola
Copy link
Copy Markdown
Author

@tim-webflow

@tim-webflow tim-webflow self-requested a review May 19, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants